package com.lance.code.synctaskapplication;

import ohos.app.Context;
import ohos.hiviewdfx.HiLog;

public class MyTask extends OhosAsyncTask{
    public MyTask(Context context) {
        super(context);
    }

    @Override
    protected void doInBackground() {
        try {

            HiLog.debug(LABEL, "start doInBackground()");
            Thread.sleep(10000);
            HiLog.debug(LABEL, "middle doInBackground()");
            Thread.sleep(10000);
            HiLog.debug(LABEL, "end doInBackground()");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
